﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IronSuit.DataMap;

namespace IronSuit.DataMap
{
	public partial class UserData : DataEntity
	{
		internal void SetTableName(string tbName)
		{
			this.GetDataHandler().TableName = tbName;
		}
		public new List<UserData> QueryEntityList(string dbStr)
		{
			List<UserData> udList = new List<UserData>();
			List<DataEntity> deList = base.QueryEntityList("UserConn");
			foreach (DataEntity de in deList)
			{
				UserData ud = new UserData();
				ud.Displace(de);
				udList.Add(ud);
			}
			return udList;
		}
	}
	public partial class UserDataDBHandler : DataHandler
	{
		protected override void PreUpdata()
		{
			((UserData)this.Entity).Modified = DateTime.Now;
		}
	}
}
